{extend name="$base_mall" /}
{block name="resources"}
<link rel="stylesheet" href="WAP_CSS/login.css">
<style>
	.down_btn {
		display: block;
		width: 100%;
		color: #fff;
		text-align: center;
		line-height: 45px;
		height: 45px;
		border-radius: 1rem;
		text-decoration: none;
		margin: 0px auto;
		background:#3E69D1;
		font-size: 20px;
	}
	.content{
		background: url(/template/wap/default/public/img/login/download_top.png) no-repeat fixed top;
		background-size:100% auto;
	}
</style>
{/block}
{block name="head"}{/block}
{block name="main"}
{php}
$is_weixin = api("System.Config.isWeixin");
$is_weixin = $is_weixin['data'];
$app_info = api("System.Config.getAppUpgradeInfo");
$app_info = $app_info['data'];
//trace($app_info,"debug");
{/php}
{if condition="$is_weixin"}
<div style="background-color: #f9cd00;color: red;text-align: center;height: 40px;line-height: 40px">
	请在手机浏览器中打开↗↗↗
</div>
{/if}
<div class="content">
	<div class="log-icon-wrapper">
		<div class="log-icon" style="margin-top: 100px">
			<img style="border-radius: 5px" src="/{$web_info['web_wechat_share_logo']}">
		</div>
	</div>
	<div class="log-wp">
		<div class="title ns-text-color-black js-login-type"  style="text-align: center;font-size: 20px">{$app_info['title']}</div>
		<div class="title ns-text-color-black js-login-type"  style="text-align: center;font-size: 16px">{$app_info['version_number']}</div>
		<div class="log-box">
			<img src="">
		</div>
		{if condition="$is_weixin"}
		<div class="down_btn" >
			请在手机浏览器中打开
		</div>
		{else}
		<div class="down_btn" onclick="download()">
			下载安卓端
		</div>
		{/if}

	</div>
</div>
<input type="hidden" value="{$code_config.error_num}" id="hide_error_num">
{/block}
{block name="footer"}{/block}
{block name="script"}
<script>
	function download() {
		window.location.href="{$app_info['download_address']}";
	}
</script>
{/block}